package com.xsy.android.compose.wandroid.logic.base.paging

import com.xsy.android.compose.wandroid.logic.model.ArticleModel
import com.xsy.android.compose.wandroid.logic.network.Network

/**
 *@author: xiaosy
 *时间: 2024/7/8
 *@Description: java类作用描述
 *@Version: 1.0
 **/
class HomePagingSource : BasePagingSource() {
    override suspend fun getArticleList(page: Int): List<ArticleModel> {
        val apiResponse = Network.getArticle(page)
        return apiResponse.data.datas
    }
}